package org.pragma.objects;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;


public class PragmaList<V> extends PragmaObject implements Iterable<V>{

	protected List<V> list = new ArrayList<V>();
	
	public PragmaList<V> add(V obj) {
		list.add(obj);
		return this;
	}

	@Override
	public Iterator<V> iterator() {
		
		return list.iterator();
	}

	public V get(Integer i) {
		return list.get(i);
	}

}
